<div class="main layui-clear">
    <div class="wrap">
        <div class="content">
            <div class="fly-tab fly-tab-index">
                <span>
                    <a href="/jie/">
                        全部
                    </a>
                    <a href="/jie/unsolved/">
                        未结帖
                    </a>
                    <a href="/jie/solved/">
                        已采纳
                    </a>
                    <a href="/jie/wonderful/">
                        精帖
                    </a>
                    <a href="/user/">
                        我的帖
                    </a>
                </span>
                <form action="{:U('search')}" class="fly-search" id="form1">
                    <i class="iconfont icon-sousuo" id="search_button">
                    </i>
                    <input class="layui-input" autocomplete="off" placeholder="搜索内容，回车跳转"
                    type="text" name="word">
                </form>
                <a href="{:U('home/jie/add')}" class="layui-btn jie-add">
                    发表新帖
                </a>
            </div>
            <div>在问题中找到的：</div>
            <ul class="fly-panel fly-list fly-list-top">



                <?php foreach ($question as $key => $value){ ?>
                    
                
                    <li class="fly-list-li">
                        <a href="/u/336" class="fly-list-avatar">
                            <img src="<?php echo $value['face']; ?>" alt="<?php echo $value['nickname']; ?>">
                        </a>
                        <h2 class="fly-tip">
                            <a href="/jie/8449.html">
                                <?php echo $value['title']; ?>
                            </a>
                            <span class="fly-tip-stick">
                                置顶
                            </span>
                        </h2>
                        <p>
                            <span>
                                <a href="/u/336">
                                    <?php echo $value['nickname']; ?>
                                </a>
                            </span>
                            <span>
                                <?php echo $value['create_time']; ?>
                            </span>
                            <span>
                                官方公告
                            </span>
                            <span class="fly-list-hint">
                                <i class="iconfont" title="回答">
                                    
                                </i>
                                    <?php echo $value['answer_num']; ?>
                                <i class="iconfont" title="人气">
                                    
                                </i>
                                    <?php echo $value['view_num']; ?>
                            </span>
                        </p>
                    </li>

                <?php }  ?>

            </ul>


            <div>在答案中找到的：</div>
            <ul class="fly-panel fly-list fly-list-top">


                <?php foreach ($answer as $key => $val){ ?>

                    <li class="fly-list-li">
                        <a href="/u/336" class="fly-list-avatar">
                            <img src="<?php echo $val['face']; ?>" alt="<?php echo $val['nickname']; ?>">
                        </a>
                        <h2 class="fly-tip">
                            <a href="/jie/8449.html">
                                <?php echo $val['content']; ?>
                            </a>
                            <span class="fly-tip-stick">
                                置顶
                            </span>
                        </h2>
                        <p>
                            <span>
                                <a href="/u/336">
                                    <?php echo $val['nickname']; ?>
                                </a>
                            </span>
                            <span>
                                <?php echo $val['create_time']; ?>
                            </span>
                            <span>
                                官方公告
                            </span>
                            <span class="fly-list-hint">
                                <i class="iconfont" title="回答">
                                    
                                </i>
                               
                                <i class="iconfont" title="人气">
                                    
                                </i>
                                
                            </span>
                        </p>
                    </li>
                
                <?php } ?>


            </ul>



            <div style="text-align: center">
                <div class="laypage-main">
                    <a href="{:U('home/jie/page',array('page'=>$page))}" class="laypage-next">
                        更多求解
                    </a>
                </div>
            </div>

        </div>
    </div>
    <div class="edge">
        <div class="fly-panel leifeng-rank">
            <h3 class="fly-panel-title">
                近一月回答榜 - TOP 12
            </h3>
            <dl>
                <dd>
                    <a href="/u/168">
                        <img src="//cdn.layui.com/avatar/168.jpg?t=1490352249902">
                        <cite>
                            贤心
                        </cite>
                        <i>
                            191次回答
                        </i>
                    </a>
                </dd>
                <dd>
                    <a href="/u/26880">
                        <img src="/avatar/26880.gif">
                        <cite>
                            小魔方
                        </cite>
                        <i>
                            189次回答
                        </i>
                    </a>
                </dd>
               
            </dl>
        </div>
      
        <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                最近热帖
            </dt>
            <dd>
                <a href="/jie/8878.html">
                    layui 2.0 4月1号发布 是愚人节玩笑吗?
                </a>
                <span>
                    <i class="iconfont">
                        
                    </i>
                    557
                </span>
            </dd>
        </dl>
        <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                近期热议
            </dt>
            <dd>
                <a href="/jie/8970.html">
                    layui-form模块中的select，radio，可以监听，但是自己加的事件没反应咋回事。
                </a>
                <span>
                    <i class="iconfont">
                        
                    </i>
                    15
                </span>
            </dd>  
        </dl>
        
       
    </div>
</div>

<script type="text/javascript">
    document.getElementById('search_button').onclick = function(){

        document.getElementById('form1').submit();

    };

</script>